//
//  FanliPageListViewController.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2022/9/6.
//

#import "FanliPageListViewController.h"

@interface FanliPageListViewController ()

@property (nonatomic, strong) NSString *typeId;
@property (nonatomic, strong) NSArray *cellDatas;

@end

@implementation FanliPageListViewController

- (instancetype)initWithType:(NSString *)typeId
{
    self = [super init];
    if (self) {
        self.typeId = typeId;
        
        
    }
    return self;
}

- (void)setupUI {
    [super setupUI];
    
    [self.view addSubview:self.tableView];
    self.tableView.estimatedRowHeight = 50;
    self.tableView.rowHeight = 50;
    
    [self.tableView registerNib:[UINib nibWithNibName:@"SetTableViewCell" bundle:nil] forCellReuseIdentifier:@"SetTableViewCell"];
    self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SL_WINDOW_WIDTH, 40)];
    
    self.tableView.frame = CGRectMake(0, 0, SL_WINDOW_WIDTH, SL_WINDOW_HEIGHT - UIDevice.vg_navigationFullHeight - 44);
    
    
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.cellDatas = [[NSArray alloc] init];
    
    self.naviView.hidden = YES;
}

# pragma UITableViewDataSource, UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.cellDatas.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return [[UITableViewCell alloc] init];
}




- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    
}

- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView {
    NSString *title = @"您暂无可申请返利的游戏哦";
    NSDictionary *attributes = @{
                                 NSFontAttributeName:[UIFont systemFontOfSize:14],
                                 NSForegroundColorAttributeName:kColor888888
                                 };
    return [[NSAttributedString alloc] initWithString:title attributes:attributes];
}


@end
